package com.hugoo.rpt.ds;

import com.hugoo.core.Conf;

/**
 *
 * @author Lovelock.Chan
 */
public class DataSource {

    protected String _sid;
    protected String _version;

    public DataSource(String _sid) {
        this._sid = _sid;
    }

    public DataSource(String _sid, String _version) {
        this._sid = _sid;
        this._version = _version;
    }

    public String getRptTitle() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_title);
    }

    public String getRptDbl() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_dbl);
    }

    public String getRptColumns() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_columns);
    }

    public String getSqlFilterFields() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_sql_filter_fields);
    }

    public String getSqlFilterFieldConfig(String key) {
        return Conf.getAutqProp2(_sid, _version, key);
    }

    public String getSqlTemplate() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_sql_templete);
    }

    public String getSqlParaColumn() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_sql_para_column);
    }

    public String getSqlFilterTemplate() {
        return Conf.getAutqProp2(_sid, _version, Conf.RPT._rpt_sql_filter_tpl);
    }
}
